import axios from '@/libs/api.request'
import qs from 'qs'
//某台设备状态
export const findById = (params) => {
  return axios.request({
    url: 'admins/statistics/findById?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
//获取机组状态的接口
export const findByIdNew = (params) => {
  return axios.request({
    url: 'admins/statistics/findByIdNew?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
//大事记
export const getEventListByEquId = (params) => {
  return axios.request({
    url: 'admins/statistics/getEventListByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const getWano = (params) => {
  return axios.request({
    url: 'admins/statistics/getWanoByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const getHealth = (params) => {
  return axios.request({
    url: 'admins/statistics/getHealthByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}

export const getIO = (params) => {
  return axios.request({
    url: 'admins/statistics/getIOByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
//应急柴油机故障模式统计
export const getFailureMode = (params) => {
  return axios.request({
    url: 'admins/statistics/getFailureModeByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
//应急柴油机故障子系统
export const getSubSystem = (params) => {
  return axios.request({
    url: 'admins/statistics/getSubSystemByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
//某台设备DDD应急柴油机故障类型统计
export const getFailure = (params) => {
  return axios.request({
    url: 'admins/statistics/getFailureTypeByEquId?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
